// Author: wsfuyibing <682805@qq.com>
// Date: 2025-05-26

package post

import "server/app/kind"

// Request
// 入参.
type Request struct {
	MemberEarlyEnabled kind.Enabled `label:"快人一步"`
	MemberEarlyHours   int          `validate:"required,min=1,max=48" label:"提前时长"`

	MemberReturnEnabled    kind.Enabled `label:"高价回鱼"`
	MemberReturnWithCount  float64      `validate:"required,min=1,max=50" label:"按条回鱼"`
	MemberReturnWithWeight float64      `validate:"required,min=0.5,max=10.0" label:"按重回鱼"`

	MemberTicketEnabled        kind.Enabled      `label:"鱼票折扣"`
	MemberTicketDiscountType   kind.DiscountType `validate:"required,min=1,max=2" label:"鱼票折扣类型"`
	MemberTicketDiscountAmount float64           `validate:"required,min=0.1,max=50.0" label:"鱼票折扣数值"`

	MemberGoodsEnabled        kind.Enabled      `label:"商店折扣"`
	MemberGoodsDiscountType   kind.DiscountType `validate:"required,min=1,max=2" label:"商店折扣类型"`
	MemberGoodsDiscountAmount float64           `validate:"required,min=0.1,max=20.0" label:"商店折扣数值"`
}
